package net.huashitong.supervision.task.dao;

import com.sirdc.modules.core.dao.GenericQuery;
import com.sirdc.modules.core.dao.StringDao;
import net.huashitong.supervision.task.entity.TaskEndDate;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public class TaskEndDateDao extends StringDao<TaskEndDate> {



    public TaskEndDate getTaskendDate(String taskMainId)
    {
        GenericQuery query =createQuery("obj");
        query.append(" and taskMainId=:taskMainId").setParam("taskMainId",taskMainId);
        return query.singleResult();
    }


}
